<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="../lib/layui/css/layui.css">
  <link rel="stylesheet" href="../styles/css/index.css">
  <script src="../lib/layui/layui.js"></script>
  <style>
    .txt {
      color: red;
    }

    .btn {
      margin-left: 40px;
    }
    .layui-row{
      margin-bottom: 10px ;
      padding: 8px 0;
    }
    .layui-row:nth-child(even){
      background: #f4f4f4;
    }
    .layui-input-block{
      line-height: 38px;
      color: #a6949b;
    }
    .layui-form-item{
      margin-bottom: 0;
    }
    .layui-form-label{
      width: 100px;
    }
    .layui-input-block {
      margin-left: 130px;
    }
  </style>
</head>

<body>
  <div class="content">
    <div class="headTitle"><span class="w-blueline"></span>地块添加</div>
    <form class="layui-form" action="">
      <div class="layui-row">
          <div class="layui-col-md5">
            <div class="layui-form-item">
              <label class="layui-form-label">地块名称 :</label>
              <div class="layui-input-block">
                <input type="text" name="title" required lay-verify="required" value="默认内容" disabled autocomplete="off"
                       class="layui-input" >
              </div>
            </div>
          </div>
          <div class="layui-col-md5">
            <div class="layui-form-item">
              <label class="layui-form-label">负责人 :</label>
              <div class="layui-input-block">
                <input type="text" name="title1" required  value="默认内容" disabled autocomplete="off"
                       class="layui-input">
              </div>
            </div>
          </div>
        </div>
      <div class="layui-row">
          <div class="layui-col-md5">
            <div class="layui-form-item">
              <label class="layui-form-label">地块类型 :</label>
              <div class="layui-input-block">
                <select name="city" lay-verify="required" disabled>
                  <option value="0">默认内容</option>
                  <option value="1">默认内容</option>
                </select>
              </div>
            </div>
          </div>
          <div class="layui-col-md5">
            <div class="layui-form-item">
              <label class="layui-form-label">种植标准 :</label>
              <div class="layui-input-block">
                <select name="city1" lay-verify="required" disabled>
                  <option value="0">默认</option>
                </select>
              </div>
            </div>
          </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label">种植类型 :</label>
            <div class="layui-input-block">
              <select name="city2" lay-verify="required"  disabled>
                <option value="0">默认</option>
              </select>
            </div>
          </div>
        </div>
        <div class="layui-col-md5">
          <div class="layui-form-item">
            <label class="layui-form-label">种植面积</label>
            <div class="layui-input-block">
              <input name="password" required lay-verify="required" autocomplete="off"
                     class="layui-input" value="默认内容" disabled>
            </div>
          </div>
        </div>
      </div>
      <div class="layui-row">
          <div class="layui-col-md5">
            <div class="layui-form-item">
              <label class="layui-form-label">所属管理区 :</label>
              <div class="layui-input-block">
                <select name="city3" lay-verify="required"  disabled>
                  <option value="0">默认</option>
                </select>
              </div>
            </div>
          </div>
          <div class="layui-col-md5">
            <div class="layui-form-item">
              <label class="layui-form-label">采集方式 :</label>
              <div class="layui-input-block">
                <select name="city5" lay-verify="required" disabled>
                  <option value="0">默认</option>

                </select>
              </div>
            </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-form-item layui-form-text">
          <div class="layui-col-md10">
            <label class="layui-form-label">地块介绍 :</label>
            <div class="layui-input-block">
              <textarea name="desc"  placeholder="默认内容" disabled class="layui-textarea"></textarea>
            </div>
          </div>
        </div>
      </div>
    </form>
  </div>
</body>

</html>
<script>
  layui.use('form', function () {
    var form = layui.form;
    //监听提交
    form.on('submit(formDemo)', function (data) { // 提交事件回调
      layer.msg(JSON.stringify(data.field));
      return false;
    });
  });
  layui.use('upload', function () { // 上传
    var upload = layui.upload;
    //执行实例
    var uploadInst = upload.render({
      elem: '#test1' //绑定元素
        ,
      url: '/upload/' //上传接口
        ,
      multiple: true, // 是否支持多图片上传
      done: function (res) {
        //上传完毕回调
      },
      error: function () {
        //请求异常回调
      }
    });
  });
</script>